Skip to content

mintSources.py: Show "Obsolete" for out of date mirrors - #285

Merged
mtwebster merged 1 commit into
linuxmint:masterfrom
Amadeus-22:fix-obsolete-mirror-label
Nov 3, 2026
Merged

mtwebster merged 1 commit into
linuxmint:masterfrom
Amadeus-22:fix-obsolete-mirror-label

Conversation

@Amadeus-22

Copy link
Copy Markdown
Contributor

show_speed_test_result() used if download_speed == -1 followed by a separate if download_speed == 0 ... else, so for an out of date mirror the "Obsolete" label was set and then immediately overwritten by the else branch with "0 kB/s" (and the speed column set to -1).

Making the second check an elif keeps the "Obsolete" label.

Reproduced against the installed mintsources 2.4.3 by calling the method with a mock model:

Before: result -1 -> speed column -1, label '0 kB/s'
After:  result -1 -> speed column  0, label 'Obsolete'

🤖 Generated with Claude Code

show_speed_test_result() uses "if ... if ... else" instead of
"if ... elif ... else", so for an out of date mirror (-1) the
"Obsolete" label is set and then immediately overwritten by the else
branch with "0 kB/s". The "Obsolete" label was never shown.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants